﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using SISLOG.BusinessEntities;
using SISLOG.DataAccess;
using Microsoft.Practices.Unity;


namespace SISLOG.BusinessLogic
{
    public class AreaBL:IAreaBL
    {
        [Dependency]
        public IAreaDAO AreaDAO { get; set; }

        public List<Area> GetAllFromArea()
        {
            return AreaDAO.GetAllFromArea();
        }

        public void RegistrarArea(Area area)
        {
            AreaDAO.RegistrarArea(area);
        }


        public Area GetAllFromAreaByIdArea(int idArea)
        {
            return AreaDAO.GetAllFromAreaByIdArea(idArea);
        }
    }
}
